#!/bin/bash
#

for src_file_name in $(find /opt/work -name "*.txt"); do
#拼接新文件名
    new_file_name=${src_file_name/txt/html}
    mv $src_file_name $new_file_name
done
